package com.ceba.test.webservice.entity;

/**
 * 从P12文件中获取私钥的相关配置
 * @author leeguang
 */
public class PrivateKeyConfP12File extends PrivateKeyConfAbstract {
    /**
     * P12证书文件路径
     */
    private String filePath;

    /**
     * 证书的别名
     */
    private String alias;

    /**
     * 获取证书的密码
     */
    private String password;

    public PrivateKeyConfP12File() {
        super();
    }

    public PrivateKeyConfP12File(String sigAlg, String publicKeyAlg) {
        super(sigAlg, publicKeyAlg);
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public PrivateKeyType getPkType() {
        return PrivateKeyType.PK_P12_FILE;
    }
}
